<?php

namespace Sifast\ProjectBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

class PrimesMensuellesAdmin extends Admin
{
 
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
        ->with('L1')
            ->add('primeMensuelle1','text',array(
                'label'=> 'Prime mensuelle 1:',))
            ->add('primeMensuelle2','text',array(
                'label'=> 'Prime mensuelle 2:',))
                ->end()
                ->with('L2')
            ->add('primeMensuelle3','text',array(
                'label'=> 'Prime mensuelle 3:',))
            ->add('primeMensuelle4','text',array(
                'label'=> 'Prime mensuelle 4:',))
                ->end()
                ->with('L3')
            ->add('primeMensuelle5','text',array(
                'label'=> 'Prime mensuelle 5:',))
            ->add('primeMensuelle6','text',array(
                'label'=> 'Prime mensuelle 6:',))
            ->end();
            
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        $datagridMapper
            ->add('primeMensuelle1')
            ->add('primeMensuelle2')
            ->add('primeMensuelle3')
            ->add('primeMensuelle4') 
            ->add('primeMensuelle5')
            ->add('primeMensuelle6');
            
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ->addIdentifier('primeMensuelle1')
            ->add('primeMensuelle2')
            ->add('primeMensuelle3')
            ->add('primeMensuelle4') 
            ->add('primeMensuelle5')
            ->add('primeMensuelle6');
            
            }
}